package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ChatRecordDao;
import com.platform.entity.ChatRecordEntity;
import com.platform.service.ChatRecordService;

/**
 * 微信聊天记录Service实现类
 *
 * @author LarkerJin
 * @email 277901879@qq.com
 * @date 2019-07-25 16:47:12
 */
@Service("chatRecordService")
public class ChatRecordService {
    @Autowired
    private ChatRecordDao chatRecordDao;

    public ChatRecordEntity queryObject(Integer id) {
        return chatRecordDao.queryObject(id);
    }

    public List<ChatRecordEntity> queryList(Map<String, Object> map) {
        return chatRecordDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return chatRecordDao.queryTotal(map);
    }

    public int save(ChatRecordEntity chatRecord) {
        return chatRecordDao.save(chatRecord);
    }

    public int update(ChatRecordEntity chatRecord) {
        return chatRecordDao.update(chatRecord);
    }

    public int delete(Integer id) {
        return chatRecordDao.delete(id);
    }

    public int deleteBatch(Integer[] ids) {
        return chatRecordDao.deleteBatch(ids);
    }
}
